
import java.io.Serializable;
public class Teacher implements Serializable {
    
    private String name;
    private int age;
    private double salary;

    public Teacher(){}
    public Teacher(String name,int age,double salary){
        this.name = name;
        this.age = age;
        this.salary = salary;
    }

    @Override
    public String toString(){
        return "Teacher [age = "+age+", name = "+name+", salary = "+salary+"]";
    }

}